.dropdown {
    /*position: absolute;  更改为绝对定位 */
    /*left: 40%;  水平居中 */
    /*transform: translateX(-50%);  向左平移自身宽度的一半，实现水平居中 */
    display: inline-block;
    /* 保持内联块元素的样式 */
}

.dropdown-btn {
    background-color: #edeeef;
    color: #333;
    border: none;
    cursor: pointer;
    display: inline-block;
    /* 保持内联块元素的样式 */
    padding: 14px;
    box-sizing: border-box;
    border: solid 1px #66c5f1;
    border-radius: 10px; /* 设置圆角半径为10px */

}
/*按钮的箭头*/
#dropdown-container {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 40px;
    z-index: 100;
    white-space: nowrap;
  }
#dropdown-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: solid #11c911;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    pointer-events: none;
    transition: 0.3s;
    transform: rotate(45deg);
}

#dropdown-container:hover::after {
    transform: rotate(45deg) scale(1.2);
}

#dropdown-container.dropdown-open::after {
    transform: rotate(225deg) scale(1.2);
}

.dropdown-btn-width {
    width: 100%;
}

.dropdown-content {
    /*position: absolute;
    top: 100%;
    left: 0;*/
    background-color: #f2f2f2;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    text-align: left;
}

.dropdown-content button:hover {
    box-shadow: 0 0 5px 2px rgba(64, 64, 64, 0.5);
}

.button {
    display: inline-block;
}